/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.router.facade.order.withdraw;

import info.peigen.hotpot.business.router.facade.Channel;
import info.peigen.hotpot.business.router.facade.enums.WithdrawStatus;
import info.peigen.hotpot.business.router.facade.order.AbstractRouterServiceOrder;
import info.peigen.hotpot.business.router.facade.order.withdraw.detail.WithdrawDetail;
import info.peigen.hotpot.common.core.lang.money.Money;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * <b>(WithdrawOrder)</b>
 * 提现
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/8/12
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class WithdrawOrder extends AbstractRouterServiceOrder {
    /** 交易Id */
    @NotEmpty
    String tradeId;
    /** 批次号 */
    @NotEmpty
    String batchNo;
    /** 提现渠道,定义提现的钱从哪里出去 */
    Channel withdrawChannel;
    /** 变更状态 */
    @Builder.Default
    WithdrawStatus status = WithdrawStatus.Declaration_Apply;
    /** 原币总金额 */
    Money                totalFromAmount;
    /** 提现总金额,到账币种 */
    Money                totalAmount;
    /** 提现总笔数 */
    Integer              totalCount;
    /** 提现明细 */
    List<WithdrawDetail> details;
}